package com.sinosoft.brokerchannel.base.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel()
@Data
public abstract class AbstractRequest {
    @ApiModelProperty(value = "请求头信息",//说明
            name = "RequestHead", //重命名
            dataType = "类",//类型
            required = true //是否必传,默认false
    )
    @JsonProperty(value = "RequestHead")
    private RequestHead requestHead;

    /**
     * 获取请求主信息
     *
     * @return
     */
    public abstract AbstractRequestMain getRequestBody();
}
